//
//  WWHeaderView.m
//  YiQiTingShu
//
//  Created by WeiWei on 15/11/5.
//  Copyright © 2015年 直到世界的尽头. All rights reserved.
//

#import "WWHeaderView.h"
#import "PublicHeader.h"

@implementation WWHeaderView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _imageView = [[UIImageView alloc] init];
        [self addSubview:_imageView];
        _titleLabel = [[UILabel alloc] init];
        [self addSubview:_titleLabel];
        [self.titleLabel NightWithType:UIViewColorTypeNormal];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.imageView.frame = CGRectMake(FitConstant_XorWidth(2), FitConstant_YorHeight(1), FitConstant_XorWidth(15), FitConstant_YorHeight(15));
    self.titleLabel.frame = CGRectMake(FitConstant_XorWidth(18), 0, FitConstant_XorWidth(150), FitConstant_YorHeight(18));
    self.titleLabel.font = [UIFont systemFontOfSize:15];
}

@end
